package com.pv.oauth.feign;

import com.pv.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description:
 * @Author: Zk
 * @Date: 2021/8/21 15:47
 */
@FeignClient("user")
public interface UserFeignService {
    /**
     * 根据用户名获取用户信息
     */
    @RequestMapping("/user/login/getByUsername/{username}")
     R getByUsername(@PathVariable("username") String username);
}
